home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 667 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  924 b 

  1. Path: ciril.fr!usenet
  2. From: gross laurent <gross>
  3. Newsgroups: comp.lang.c,alt.msdos.programmer
  4. Subject: Re: Two strange C problems.
  5. Date: 8 Jan 1996 10:30:46 GMT
  6. Organization: CIRIL, Nancy, France
  7. Message-ID: <4cqrom$a63@arcturus.ciril.fr>
  8. References: <4cojb2$qog@lugb.latrobe.edu.au>
  9. NNTP-Posting-Host: nyquist.cran.u-nancy.fr
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.12 (X11; I; SunOS 4.1.1 sun4c)
  14. X-URL: news:4cojb2$qog@lugb.latrobe.edu.au
  15.  
  16. For your first problem, try to FLUSH the buffers. Printf and Scanf and all I/O
  17. operations uses a buffer whitch is not automatically flushed when you exit of
  18. your program.
  19. For your second problem when you write "carac=15" then chr(carac) is the ASCII
  20. character of decimal value 15, ie the ASCII character 15. If you write
  21. carac=\15, then chr(carac) is the ASCII character Hex(15), ie the ASCII
  22. character 21.
  23.  
  24.